package training.project.app.service;

import java.util.List;

import training.project.app.domain.Flight;
import training.project.app.domain.FlightClient;
import training.project.app.domain.UserAccount;

public interface UserService
	{

		UserAccount getUserById(Integer id);

		void updateClient(UserAccount client);
		
		void saveClient(UserAccount client);

		void bookFlight(Flight flight, UserAccount client);
		
		List<FlightClient> getFlightClients(UserAccount client);
		
		UserAccount loadUserDetailsByLogin(String login);
		
		Boolean purchaseFlight(UserAccount user,FlightClient flightClient);
	}
